import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
   {
      path: '/',
      name: 'index',
      // component: index
      component:resolve => require(['@/view/index'],resolve)
    },
    {
      path: '/brand',
      name: 'brand',
      // component: brand
      component:resolve => require(['@/view/brand'],resolve)
    },
    {
      path: '/home',
      name: 'home',
      component:resolve => require(['@/view/home'],resolve)
    },
    {
      path: '/product',
      name: 'product',
      component:resolve => require(['@/view/product'],resolve)
    },
    {
      path: '/aboutUs',
      name: 'aboutUs',
      component:resolve => require(['@/view/aboutUs'],resolve)
    },
    {
      path: '/contactUs',
      name: 'contactUs',
      component:resolve => require(['@/view/contactUs'],resolve)
    },
    {
      path: '/retail',
      name: 'retail',
      component:resolve => require(['@/view/retail'],resolve)
    },
    {
      path: '/productInfo',
      name: 'productInfo',
      component:resolve => require(['@/view/productInfo'],resolve)
    },
    {
      path: '/features',
      name: 'features',
      component:resolve => require(['@/view/features'],resolve)
    },
    {
      path: '/newView',
      name: 'newView',
      component:resolve => require(['@/view/newView'],resolve)
    },
    {
      path: '/privacy',
      name: 'privacy',
      component:resolve => require(['@/view/privacy'],resolve)
    }
  ]
})
